package com.ly.mp.dal.comm.helper;

import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PropertyResource {
    private static Logger logger = LoggerFactory.getLogger(PropertyResource.class);
    private static Properties properties = new Properties();

    public static String getProperty(String propertyName) {
        return properties.getProperty(propertyName);
    }

    static {
        try {
            properties.load(PropertyResource.class.getClassLoader().getResourceAsStream("jdbc.properties"));
        } catch (IOException var1) {
            logger.error(var1.getMessage(), var1);
        }

    }
}